﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;

namespace WuLiu.Spider.BLL
{
    public static class RequestSendHeaderAttributeExtension
    {
        public static void Fill(this RequestSendHeaderAttribute source, HttpWebRequest hwRequest)
        {
            hwRequest.Accept = source.Accept;
            hwRequest.ContentType = source.ContentType;
            hwRequest.UserAgent = source.UserAgent;
            hwRequest.Method = source.Method;            
        }
    }
}
